<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册钱包</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f7f7f7;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column; /* 使内容居中显示 */
        }
        form {
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            width: 350px;
            text-align: center; /* 表单文本居中 */
        }
        h2 {
            margin-bottom: 20px;
            color: #333;
        }
        label {
            display: block;
            margin: 15px 0 5px;
            color: #555;
        }
        input {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 6px;
            box-sizing: border-box;
        }
        button {
            width: 100%;
            padding: 15px;
            background-color: #5c67f2;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            margin-top: 10px;
            font-size: 16px; /* 增加按钮文字大小 */
        }
        button:hover {
            background-color: #4a54e1;
        }
        button + button {
            background-color: #f0f0f0;
            color: #333;
        }
        button + button:hover {
            background-color: #e0e0e0;
        }
    </style>
</head>
<body>
    <h2>注册新钱包</h2>
    <form id="registerForm">
        <label for="registerUsername">用户名:</label>
        <input type="text" id="registerUsername" required>

        <label for="registerPassword">密码:</label>
        <input type="password" id="registerPassword" required>

        <button type="submit">注册</button>
        <button type="button" onclick="window.location.href='login.html'">已有账号？登录</button>
    </form>

    <script src="register.js"></script>
</body>
</html>